package sunsite.po;

/***********************************************************************
 * Module:  News.java
 * Author:  mg
 * Purpose: Defines the Class News
 ***********************************************************************/

import java.util.*;

/** @pdOid 6f8c231f-cf1c-4bfd-9c43-9b280deb2c87 */
public class News {
   /** @pdOid 2e4fdb27-255e-41d7-8ab0-9e971f2c80ef */
   private java.lang.String newsId;
   /** @pdOid 1e2ff1c4-fee8-48dd-a101-dbefa3632ebb */
   private java.util.Date releasedate;
   /** @pdOid 4815d30a-a379-4e96-a2de-75f8cae851ea */
   private java.lang.String title;
   /** @pdOid f06e3c40-8e56-4ffa-8466-0ad0ec596b99 */
   private java.lang.String summary;
   /** @pdOid e107e633-56c2-4d68-97fa-7d584ca76ca5 */
   private boolean recommended;
   /** @pdOid 29e5c21c-ec69-4dfc-a45b-f20d92c8773c */
   private java.lang.String coverurl;
   /** @pdOid a65a6919-c2be-4f8e-8c86-994282f2cc95 */
   private java.lang.String content;
   
   /** @pdRoleInfo migr=no name=NewsType assc=newsType mult=0..1 side=A */
   private NewsType newsType;
   /** @pdRoleInfo migr=no name=Usr assc=newsPublisher mult=0..1 side=A */
   private Usr usr;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCoverurl() {
        return coverurl;
    }

    public void setCoverurl(String coverurl) {
        this.coverurl = coverurl;
    }

    public String getNewsId() {
        return newsId;
    }

    public void setNewsId(String newsId) {
        this.newsId = newsId;
    }

    public NewsType getNewsType() {
        return newsType;
    }

    public void setNewsType(NewsType newsType) {
        this.newsType = newsType;
    }

    public boolean isRecommended() {
        return recommended;
    }

    public void setRecommended(boolean recommended) {
        this.recommended = recommended;
    }

    public Date getReleasedate() {
        return sunsite.tools.DateHelper.FormatDate(releasedate);
    }

    public void setReleasedate(Date releasedate) {
        this.releasedate = releasedate;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Usr getUsr() {
        return usr;
    }

    public void setUsr(Usr usr) {
        this.usr = usr;
    }
   
   

}
